﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace VeMayBayDTO
{
    public class NhanVienDTO:LoaiNhanVien
    {
        public string MaNV { get; set; }
        public string TenNV { get; set ; }
        public string CMND { get; set; }
        public DateTime NgaySinh { get; set; }
        public string DiaChi { get; set; }
        public string DienThoai { get; set; }

        public string XuLyHoTen(string hoten)
        {
            string pattern = "\\s+";
            string repalce = " ";
            Regex reg = new Regex(pattern);
            hoten = reg.Replace(hoten, repalce).Trim().ToUpper();

            return hoten;
        }


    }
}
